package com.lagou.Service.impl;

import com.lagou.Service.CommentService;
import com.lagou.mapper.CommentMapper;
import com.lagou.pojo.Comment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CommentServiceImpl implements CommentService {

    @Autowired
    private CommentMapper commentMapper;
    @Override
    public Comment getCommentById(Integer id) throws Exception {
        return commentMapper.findById(id);
    }
}
